package yhao.demo.service.login.apilist.model;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import yhao.infra.common.model.Entity;

import java.util.HashSet;
import java.util.Set;

/**
 * 人员Model类
 * Created by yoara on 2019/1/16.
 */
@ApiModel
public class LoginPersonModel extends Entity<String> {
	@ApiModelProperty(value = "姓名")
	private String name;

	@ApiModelProperty(value = "手机号、登录名")
	private String phone;

	@ApiModelProperty(value = "密码",hidden = true)
	@JSONField(serialize = false)
	private String password;

	@ApiModelProperty(value = "是否为超级管理员")
	private boolean admin;

	private Set<String> currentAuthMap = new HashSet<>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public Set<String> getCurrentAuthMap() {
		return currentAuthMap;
	}

	public void setCurrentAuthMap(Set<String> currentAuthMap) {
		this.currentAuthMap = currentAuthMap;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
}
